package com.dnapipeline.modelManage.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;

@Entity
public class PipelineModel {
    @Id
    private String pipelineKey; // 主键

    private String pipelineName;

    @Lob
    private String pipelineContent;


    private Boolean isOnline;

    public Boolean getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(Boolean online) {
        isOnline = online;
    }


    public PipelineModel() {
        // 按照设计要求默认生成deviceKey，使用Math.random().toString()方式生成
        this.pipelineKey = Double.toString(Math.random());
    }

    public String getPipelineKey() {
        return pipelineKey;
    }

    public void setPipelineKey(String pipelineKey) {
        this.pipelineKey = pipelineKey;
    }

    public String getPipelineName() {
        return pipelineName;
    }

    public void setPipelineName(String pipelineName) {
        this.pipelineName = pipelineName;
    }

    public String getPipelineContent() {
        return pipelineContent;
    }

    public void setPipelineContent(String pipelineContent) {
        this.pipelineContent = pipelineContent;
    }
}
